package person.bing.fbcloud.monitor.service.impl;

import org.springframework.stereotype.Service;
import person.bing.fbcloud.monitor.service.OrderService;

import java.util.List;

/**
 * @author: mengfanbing
 * @date: 2020/1/20 15:54
 */
@Service("order2")
public class Calculation2ServiceImpl implements OrderService {
    @Override
    public Integer calculation(List<Integer> moneys) {
        return moneys.stream().reduce(Integer::max).get();
    }
}
